package org.henau.PathCommand;

// 5. 远程控制器
public class RemoteControl {
    private PathCommand command;

    public void setCommand(PathCommand command) {
        this.command = command;
    }

    public void executeCommand() {
        command.execute();
    }

    public void undoCommand() {
        command.undo();
    }
}